package com.community.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("facility")
public class Facility {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String name;
    
    private String type;  // 设施类型：路灯、健身器材等
    
    private String location;
    
    private String status;  // 设施状态：正常/维修中/报废
    
    private String manufacturer;
    
    private LocalDateTime installDate;
    
    private LocalDateTime lastMaintenanceDate;
    
    private String remark;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
} 